home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / cdev / sludge.sit / Source Code / Sludge.r < prev    next >
Text File  |  1999-10-07  |  4KB  |  208 lines

  1.  
  2. #include "Types.r"
  3. #include "SysTypes.r"
  4.  
  5. type 'slud' as 'STR ';
  6.  
  7. resource 'slud' (0) {
  8.     "Sludge CDEV and INIT by Kevin McEntee"
  9. };
  10.  
  11.  
  12. resource 'vers' (1) {
  13.     0x01, 0x00, release, 0x00,
  14.     verUS,
  15.     "1.00",
  16.     "1.00, Copyright ⌐ 1990 Apple Computer, Inc."
  17. };
  18.  
  19. type 'mach' {
  20.     unsigned hex integer;    /* Softmask */
  21.     unsigned hex integer;    /* Hardmask */
  22. };
  23.  
  24.  
  25. resource 'FREF' (-4064, purgeable) {
  26.     'cdev', 0, ""
  27. };
  28.  
  29. resource 'BNDL' (-4064, purgeable) {
  30.     'slud', 0,
  31.     {    'ICN#', {0, -4064},
  32.         'FREF', {0, -4064}
  33.     }
  34. };
  35.  
  36. resource 'ICN#' (-4064, purgeable, preload) {
  37.     {    /* array: 2 elements */
  38.         /* [1] */
  39.         $"00 00 00 00 00 3F B1 80 01 FF FB C0 0F FF FF C0"
  40.         $"1F FF FF C0 3F FF FF C0 3F FF FF C0 3F FF FF 80"
  41.         $"3F FF FF 80 3F FF FF BC 3F FF FF FC 1F FF FF F8"
  42.         $"7F FF FF F8 7F FF FF FC 7F FF FF FE 3F FF FF FE"
  43.         $"1F FF FF FE 1F FF FF FE 3F FF FF FC 7F FF FF F0"
  44.         $"7F FF FF F0 7F FF FF F0 3F FF FF E0 1F FF FF E0"
  45.         $"0F FF FF E0 03 FF FF C0 03 FF FE 00 01 FF FE 00"
  46.         $"01 F7 FE 00 01 E3 FC 00 00 60 FC",
  47.         /* [2] */
  48.         $"10 04 00 80 42 00 00 04 10 1F F0 80 41 FF FF A0"
  49.         $"07 FF FF 82 1F FF FF 90 9F FF FF A0 1F FF FF 00"
  50.         $"1F FF FF 52 5F FF FF 00 1F FF FF F0 1F FF FF F1"
  51.         $"1F FF FF F0 1F FF FF F8 1F FF FF FC 1F FF FF FC"
  52.         $"1F FF FF FC 1F FF FF F8 1F FF FF E0 5F FF FF E0"
  53.         $"1F FF FF E4 1F FF FF C0 4F FF FF C0 0F FF FF C5"
  54.         $"21 FF FF 80 09 FF FC 00 00 FF FC 10 24 FF FC 02"
  55.         $"01 77 FD 08 14 6B F8 00 00 00 02 21 24 A9 51 04"
  56.     }
  57. };
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. resource 'DITL' (-4064) {
  65.     { /* array DITLarray: 7 elements */
  66.         /* [1] */
  67.         {83, 105, 95, 165},
  68.         RadioButton {
  69.             enabled, "On"
  70.         };
  71.         /* [2] */
  72.         {103, 105, 115, 165},
  73.         RadioButton {
  74.             enabled, "Off"
  75.         };
  76.         /* [3] */
  77.         {3, 94, 67,235},
  78.         Picture {
  79.             disabled, 0
  80.         };
  81.         /*  [4] */
  82.         {112,235,212,251},
  83.         UserItem {
  84.             enabled
  85.         };
  86.         /*  [5] */
  87.         {112,235,212,251},
  88.         Control {
  89.             disabled, 0
  90.         };
  91.         /*  [6] */
  92.         {23,250,41,301},
  93.         Button {
  94.             enabled, "About"
  95.         };
  96.         /* [7] */
  97.         {73, 96, 239, 308},
  98.         UserItem {
  99.             enabled
  100.         };
  101.     }
  102. };
  103.  
  104.  
  105. resource 'CNTL' (0, preload, purgeable) {
  106.     {112,235,212,251},
  107.     999,
  108.     visible, 999, 0, scrollBarProc, 0, ""
  109. };
  110.  
  111.  
  112.  
  113. resource 'nrct' (-4064, purgeable) {
  114.     /* array RectArray: 1 elements */
  115.     {    
  116.         /* [1] */
  117.         {-1, 87, 255, 322 }
  118.     }
  119. };
  120.  
  121. resource 'mach' (-4064, purgeable) {
  122.     0xFFFF,
  123.     0
  124. };
  125.  
  126.  
  127. resource 'ALRT' (1, purgeable) {
  128.     {150, 80, 230, 520},
  129.     1,
  130.     {
  131.         OK, visible, sound1;    /* stage 4 */
  132.         OK, visible, sound1;    /* stage 3 */
  133.         OK, visible, sound1;    /* stage 2 */
  134.         OK, visible, sound1;    /* stage 1 */
  135.     }
  136. };
  137.  
  138. resource 'DITL' (1, purgeable) {
  139.     { /* DITL array: 3 elements */
  140.         /* [1] */
  141.         {15, 380, 35, 430},
  142.         Button {
  143.             enabled, "OK"
  144.         };
  145.         /* [2] */
  146.         {15,60,30,350},
  147.         StaticText {
  148.             disabled, "The Sludge CDEV cannot operate when"
  149.         };
  150.         /* [3] */
  151.         {35,60,50,350},
  152.         StaticText {
  153.             disabled, "it is locked."
  154.         };
  155.     }
  156. };
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163. /* Here are the strings for the about box */
  164.  
  165. resource 'STR ' (0) {
  166.     "SLUDGE"
  167. };
  168.  
  169. resource 'STR ' (1) {
  170.     "The SLUDGE cdev slows down your "
  171. };
  172.  
  173. resource 'STR ' (2) {
  174.     "Macintosh.  The degree to which it is"
  175. };
  176.  
  177. resource 'STR ' (3) {
  178.     "slowed down is set by the SLUDGE factor."
  179. };
  180.  
  181. resource 'STR ' (4) {
  182.     "SLUDGE is useful for watching and "
  183. };
  184.  
  185. resource 'STR ' (5) {
  186.     "debugging screen updates."
  187. };
  188.  
  189. resource 'STR ' (6) {
  190.     "This cdev uses the Jump-Trace exception"
  191. };
  192.  
  193. resource 'STR ' (7) {
  194.     "and therefore can only run machines with"
  195. };
  196.  
  197. resource 'STR ' (8) {
  198.     "a 68020 or 68030."
  199. };
  200.  
  201. resource 'STR ' (9) {
  202.     "This software is free.  All rights reserved."
  203. };
  204.  
  205. resource 'STR ' (10) {
  206.     "Email comments to:  kmcentee@apple.com"
  207. };
  208.